/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function confirmDelete(comId, comName) {               
    $.get('../GetMessage',
        {mesId:"001"},
        function(responseData) {       
            //alert(responseData);
            $(responseData).find('Messenger').each(function(){                    
                var MesId = $(this).find('Message').find('MesId').text();
                var MesType = $(this).find('Message').find('MesType').text();
                var MesDetail = $(this).find('Message').find('MesDetail').text();
                //alert('MesId = '+MesId+' MesType = '+MesType+' MesDetail = '+MesDetail);                                       

                var result = confirm(MesDetail + ": " + comName);
                if (result == true) {
                    location.href = "CompanyDelete?comId="+comId;
                }                     
            });
        }
    );                
}
